import axios from "@/js/my_axios";


function open_dir(path) {
    let data = {
        'path': path
    };
    return axios({
        method: 'get',
        url: 'log_manage/',
        params: data,
    }).then((response) => {
        return response
    }).catch((error) => {
        console.log(error);
    });
}

function open_file(path) {
    let data = {
        'path': path
    };
    return axios({
        method: 'post',
        url: 'log_manage/',
        data: data,
    }).then((response) => {
        return response
    }).catch((error) => {
        console.log(error);
    });
}


function delete_file(path) {
    let data = {
        'path': path
    };
    return axios({
        method: 'delete',
        url: 'log_manage/',
        data: data,
    }).then((response) => {
        return response
    }).catch((error) => {
        console.log(error);
    });
}


export {
    open_dir,
    open_file,
    delete_file,
}